package company.traits

import company.Company.Call
import company.Company.LongDistanceCall

trait Monetizable {

	def priceWith(callDuration: Double, minutePrice: Double): Double = 
	  minutePrice + ((callDuration - 60) / 10).abs * (minutePrice / 6)
	  
	def minutePriceForLongCallsToRegion(prices: Map[(String, String), Double], provenience: String, destination: String): Double =
	  prices.get(provenience, destination).getOrElse(0.0)
}